using System;
namespace Microsoft.Phone.Controls
{
	internal class DayDataSource : DataSource
	{
		protected override DateTime? GetRelativeTo(DateTime relativeDate, int delta)
		{
			int num = DateTime.DaysInMonth(relativeDate.get_Year(), relativeDate.get_Month());
			int num2 = (num + relativeDate.get_Day() - 1 + delta) % num + 1;
			return new DateTime?(new DateTime(relativeDate.get_Year(), relativeDate.get_Month(), num2, relativeDate.get_Hour(), relativeDate.get_Minute(), relativeDate.get_Second()));
		}
	}
}
